
package gov.chinatax.ctcps.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for zjzfSqmx.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="zjzfSqmxForm"
 */
public class ZjzfSqmxForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _mxbh = null;
   private java.lang.String _nd = null;
   private java.lang.String _xh = null;
   private java.lang.String _jzzfzclxDm = null;
   private java.lang.String _zffsDm = null;
   private java.lang.String _yszbbh = null;
   private java.lang.String _xmbh = null;
   private java.lang.String _zhbh = null;
   private java.math.BigDecimal _sqje = null;
   private java.lang.String _jjflbh = null;
   private java.math.BigDecimal _czpfje = null;
   private java.math.BigDecimal _czbpfje = null;
   private java.lang.String _zgdwyjDm = null;
   private java.lang.String _czbyjDm = null;
   private java.lang.String _spztDm = null;
   private java.lang.String _hdqrztDm = null;
   private java.lang.String _qrsj = null;
   private java.lang.String _sqdbh = null;
   private java.lang.String _bz = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;
   private java.lang.String _yslyBm = null;
   private java.lang.String _mxxlh = null;

   
   
   
   
   /**
    * Standard constructor.
    */
   public ZjzfSqmxForm() {
   }

   /**
    * Returns the mxbh
    *
    * @return the mxbh
    */
   public java.lang.String getMxbh() {
      return _mxbh;
   }

   /**
    * Sets the mxbh
    *
    * @param mxbh the new mxbh value
    */
   public void setMxbh(java.lang.String mxbh) {
      _mxbh = mxbh;
   }
   /**
    * Returns the nd
    *
    * @return the nd
    */
   public java.lang.String getNd() {
      return _nd;
   }

   /**
    * Sets the nd
    *
    * @param nd the new nd value
    */
   public void setNd(java.lang.String nd) {
      _nd = nd;
   }
   /**
    * Returns the xh
    *
    * @return the xh
    */
   public java.lang.String getXh() {
      return _xh;
   }

   /**
    * Sets the xh
    *
    * @param xh the new xh value
    */
   public void setXh(java.lang.String xh) {
      _xh = xh;
   }
   /**
    * Returns the jzzfzclxDm
    *
    * @return the jzzfzclxDm
    */
   public java.lang.String getJzzfzclxDm() {
      return _jzzfzclxDm;
   }

   /**
    * Sets the jzzfzclxDm
    *
    * @param jzzfzclxDm the new jzzfzclxDm value
    */
   public void setJzzfzclxDm(java.lang.String jzzfzclxDm) {
      _jzzfzclxDm = jzzfzclxDm;
   }
   /**
    * Returns the zffsDm
    *
    * @return the zffsDm
    */
   public java.lang.String getZffsDm() {
      return _zffsDm;
   }

   /**
    * Sets the zffsDm
    *
    * @param zffsDm the new zffsDm value
    */
   public void setZffsDm(java.lang.String zffsDm) {
      _zffsDm = zffsDm;
   }
   /**
    * Returns the yszbbh
    *
    * @return the yszbbh
    */
   public java.lang.String getYszbbh() {
      return _yszbbh;
   }

   /**
    * Sets the yszbbh
    *
    * @param yszbbh the new yszbbh value
    */
   public void setYszbbh(java.lang.String yszbbh) {
      _yszbbh = yszbbh;
   }
   /**
    * Returns the xmbh
    *
    * @return the xmbh
    */
   public java.lang.String getXmbh() {
      return _xmbh;
   }

   /**
    * Sets the xmbh
    *
    * @param xmbh the new xmbh value
    */
   public void setXmbh(java.lang.String xmbh) {
      _xmbh = xmbh;
   }
   /**
    * Returns the zhbh
    *
    * @return the zhbh
    */
   public java.lang.String getZhbh() {
      return _zhbh;
   }

   /**
    * Sets the zhbh
    *
    * @param zhbh the new zhbh value
    */
   public void setZhbh(java.lang.String zhbh) {
      _zhbh = zhbh;
   }
   /**
    * Returns the sqje
    *
    * @return the sqje
    */
   public java.math.BigDecimal getSqje() {
      return _sqje;
   }

   /**
    * Sets the sqje
    *
    * @param sqje the new sqje value
    */
   public void setSqje(java.math.BigDecimal sqje) {
      _sqje = sqje;
   }
   /**
    * Returns the jjflbh
    *
    * @return the jjflbh
    */
   public java.lang.String getJjflbh() {
      return _jjflbh;
   }

   /**
    * Sets the jjflbh
    *
    * @param jjflbh the new jjflbh value
    */
   public void setJjflbh(java.lang.String jjflbh) {
      _jjflbh = jjflbh;
   }
   /**
    * Returns the czpfje
    *
    * @return the czpfje
    */
   public java.math.BigDecimal getCzpfje() {
      return _czpfje;
   }

   /**
    * Sets the czpfje
    *
    * @param czpfje the new czpfje value
    */
   public void setCzpfje(java.math.BigDecimal czpfje) {
      _czpfje = czpfje;
   }
   /**
    * Returns the czbpfje
    *
    * @return the czbpfje
    */
   public java.math.BigDecimal getCzbpfje() {
      return _czbpfje;
   }

   /**
    * Sets the czbpfje
    *
    * @param czbpfje the new czbpfje value
    */
   public void setCzbpfje(java.math.BigDecimal czbpfje) {
      _czbpfje = czbpfje;
   }
   /**
    * Returns the zgdwyjDm
    *
    * @return the zgdwyjDm
    */
   public java.lang.String getZgdwyjDm() {
      return _zgdwyjDm;
   }

   /**
    * Sets the zgdwyjDm
    *
    * @param zgdwyjDm the new zgdwyjDm value
    */
   public void setZgdwyjDm(java.lang.String zgdwyjDm) {
      _zgdwyjDm = zgdwyjDm;
   }
   /**
    * Returns the czbyjDm
    *
    * @return the czbyjDm
    */
   public java.lang.String getCzbyjDm() {
      return _czbyjDm;
   }

   /**
    * Sets the czbyjDm
    *
    * @param czbyjDm the new czbyjDm value
    */
   public void setCzbyjDm(java.lang.String czbyjDm) {
      _czbyjDm = czbyjDm;
   }
   /**
    * Returns the spztDm
    *
    * @return the spztDm
    */
   public java.lang.String getSpztDm() {
      return _spztDm;
   }

   /**
    * Sets the spztDm
    *
    * @param spztDm the new spztDm value
    */
   public void setSpztDm(java.lang.String spztDm) {
      _spztDm = spztDm;
   }
   /**
    * Returns the hdqrztDm
    *
    * @return the hdqrztDm
    */
   public java.lang.String getHdqrztDm() {
      return _hdqrztDm;
   }

   /**
    * Sets the hdqrztDm
    *
    * @param hdqrztDm the new hdqrztDm value
    */
   public void setHdqrztDm(java.lang.String hdqrztDm) {
      _hdqrztDm = hdqrztDm;
   }
   /**
    * Returns the qrsj
    *
    * @return the qrsj
    */
   public java.lang.String getQrsj() {
      return _qrsj;
   }

   /**
    * Sets the qrsj
    *
    * @param qrsj the new qrsj value
    */
   public void setQrsj(java.lang.String qrsj) {
      _qrsj = qrsj;
   }
   /**
    * Returns the sqdbh
    *
    * @return the sqdbh
    */
   public java.lang.String getSqdbh() {
      return _sqdbh;
   }

   /**
    * Sets the sqdbh
    *
    * @param sqdbh the new sqdbh value
    */
   public void setSqdbh(java.lang.String sqdbh) {
      _sqdbh = sqdbh;
   }
   /**
    * Returns the bz
    *
    * @return the bz
    */
   public java.lang.String getBz() {
      return _bz;
   }

   /**
    * Sets the bz
    *
    * @param bz the new bz value
    */
   public void setBz(java.lang.String bz) {
      _bz = bz;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }
   /**
    * Returns the yslyBm
    *
    * @return the yslyBm
    */
   public java.lang.String getYslyBm() {
      return _yslyBm;
   }

   /**
    * Sets the yslyBm
    *
    * @param yslyBm the new yslyBm value
    */
   public void setYslyBm(java.lang.String yslyBm) {
      _yslyBm = yslyBm;
   }
   /**
    * Sets the mxxlh
    *
    * @param mxxlh the new mxxlh value
    */
   public void setMxxlh(java.lang.String mxxlh) {
      _mxxlh = mxxlh;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getMxbh() == null) {
         errors.add("mxbh", new ActionError("error.mxbh.required"));
      }
      if(getNd() == null) {
         errors.add("nd", new ActionError("error.nd.required"));
      }
      if(getXh() == null) {
         errors.add("xh", new ActionError("error.xh.required"));
      }
      if(getJzzfzclxDm() == null) {
         errors.add("jzzfzclxDm", new ActionError("error.jzzfzclxDm.required"));
      }
      if(getZffsDm() == null) {
         errors.add("zffsDm", new ActionError("error.zffsDm.required"));
      }
      if(getYszbbh() == null) {
         errors.add("yszbbh", new ActionError("error.yszbbh.required"));
      }
      if(getXmbh() == null) {
         errors.add("xmbh", new ActionError("error.xmbh.required"));
      }
      if(getZhbh() == null) {
         errors.add("zhbh", new ActionError("error.zhbh.required"));
      }
      if(getSqje() == null) {
         errors.add("sqje", new ActionError("error.sqje.required"));
      }
      if(getCzpfje() == null) {
         errors.add("czpfje", new ActionError("error.czpfje.required"));
      }
      if(getCzbpfje() == null) {
         errors.add("czbpfje", new ActionError("error.czbpfje.required"));
      }
      if(getSpztDm() == null) {
         errors.add("spztDm", new ActionError("error.spztDm.required"));
      }
      if(getHdqrztDm() == null) {
         errors.add("hdqrztDm", new ActionError("error.hdqrztDm.required"));
      }
      // TODO test format/data
      return errors;
   }
}
